/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter.core.db.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Snark
 */
@Entity
@Table(name = "TEACHERS")
@NamedQueries({
    @NamedQuery(name = "Teachers.findAll", query = "SELECT t FROM Teachers t"),
    @NamedQuery(name = "Teachers.findBySysFldorder", query = "SELECT t FROM Teachers t WHERE t.sysFldorder = :sysFldorder"),
    @NamedQuery(name = "Teachers.findBySysGuid", query = "SELECT t FROM Teachers t WHERE t.sysGuid = :sysGuid"),
    @NamedQuery(name = "Teachers.findBySysState", query = "SELECT t FROM Teachers t WHERE t.sysState = :sysState"),
    @NamedQuery(name = "Teachers.findBySysRev", query = "SELECT t FROM Teachers t WHERE t.sysRev = :sysRev"),
    @NamedQuery(name = "Teachers.findBySysCreated", query = "SELECT t FROM Teachers t WHERE t.sysCreated = :sysCreated"),
    @NamedQuery(name = "Teachers.findBySysUpdated", query = "SELECT t FROM Teachers t WHERE t.sysUpdated = :sysUpdated"),
    @NamedQuery(name = "Teachers.findBySysCreator", query = "SELECT t FROM Teachers t WHERE t.sysCreator = :sysCreator"),
    @NamedQuery(name = "Teachers.findBySysUser", query = "SELECT t FROM Teachers t WHERE t.sysUser = :sysUser"),
    @NamedQuery(name = "Teachers.findBySysGuidfk", query = "SELECT t FROM Teachers t WHERE t.sysGuidfk = :sysGuidfk"),
    @NamedQuery(name = "Teachers.findBySysParentguid", query = "SELECT t FROM Teachers t WHERE t.sysParentguid = :sysParentguid"),
    @NamedQuery(name = "Teachers.findByFio", query = "SELECT t FROM Teachers t WHERE t.fio = :fio"),
    @NamedQuery(name = "Teachers.findByIdNumber", query = "SELECT t FROM Teachers t WHERE t.idNumber = :idNumber"),
    @NamedQuery(name = "Teachers.findByEduinstitutionfk", query = "SELECT t FROM Teachers t WHERE t.eduinstitutionfk = :eduinstitutionfk"),
    @NamedQuery(name = "Teachers.findByFacultyfk", query = "SELECT t FROM Teachers t WHERE t.facultyfk = :facultyfk"),
    @NamedQuery(name = "Teachers.findByDepartmentfk", query = "SELECT t FROM Teachers t WHERE t.departmentfk = :departmentfk"),
    @NamedQuery(name = "Teachers.findByOrganizationfk", query = "SELECT t FROM Teachers t WHERE t.organizationfk = :organizationfk"),
    @NamedQuery(name = "Teachers.findByPositionfk", query = "SELECT t FROM Teachers t WHERE t.positionfk = :positionfk"),
    @NamedQuery(name = "Teachers.findByPodrazdelenie", query = "SELECT t FROM Teachers t WHERE t.podrazdelenie = :podrazdelenie"),
    @NamedQuery(name = "Teachers.findByPhone", query = "SELECT t FROM Teachers t WHERE t.phone = :phone"),
    @NamedQuery(name = "Teachers.findByExperience", query = "SELECT t FROM Teachers t WHERE t.experience = :experience"),
    @NamedQuery(name = "Teachers.findByAcademicDegreefk", query = "SELECT t FROM Teachers t WHERE t.academicDegreefk = :academicDegreefk"),
    @NamedQuery(name = "Teachers.findByAcademicRankfk", query = "SELECT t FROM Teachers t WHERE t.academicRankfk = :academicRankfk"),
    @NamedQuery(name = "Teachers.findByGraduate", query = "SELECT t FROM Teachers t WHERE t.graduate = :graduate"),
    @NamedQuery(name = "Teachers.findByPhd", query = "SELECT t FROM Teachers t WHERE t.phd = :phd"),
    @NamedQuery(name = "Teachers.findByApplicantPhd", query = "SELECT t FROM Teachers t WHERE t.applicantPhd = :applicantPhd"),
    @NamedQuery(name = "Teachers.findByApplicantDoctor", query = "SELECT t FROM Teachers t WHERE t.applicantDoctor = :applicantDoctor"),
    @NamedQuery(name = "Teachers.findByDiplom", query = "SELECT t FROM Teachers t WHERE t.diplom = :diplom"),
    @NamedQuery(name = "Teachers.findByTuitionFk", query = "SELECT t FROM Teachers t WHERE t.tuitionFk = :tuitionFk"),
    @NamedQuery(name = "Teachers.findByStudyYear", query = "SELECT t FROM Teachers t WHERE t.studyYear = :studyYear"),
    @NamedQuery(name = "Teachers.findByEstablishment", query = "SELECT t FROM Teachers t WHERE t.establishment = :establishment"),
    @NamedQuery(name = "Teachers.findByWorkLoading", query = "SELECT t FROM Teachers t WHERE t.workLoading = :workLoading"),
    @NamedQuery(name = "Teachers.findByDateProtection", query = "SELECT t FROM Teachers t WHERE t.dateProtection = :dateProtection"),
    @NamedQuery(name = "Teachers.findByAttestat", query = "SELECT t FROM Teachers t WHERE t.attestat = :attestat"),
    @NamedQuery(name = "Teachers.findByPsaMember", query = "SELECT t FROM Teachers t WHERE t.psaMember = :psaMember"),
    @NamedQuery(name = "Teachers.findByPsa", query = "SELECT t FROM Teachers t WHERE t.psa = :psa"),
    @NamedQuery(name = "Teachers.findByBoardMember", query = "SELECT t FROM Teachers t WHERE t.boardMember = :boardMember"),
    @NamedQuery(name = "Teachers.findByCouncil", query = "SELECT t FROM Teachers t WHERE t.council = :council"),
    @NamedQuery(name = "Teachers.findBySnils", query = "SELECT t FROM Teachers t WHERE t.snils = :snils"),
    @NamedQuery(name = "Teachers.findByDate", query = "SELECT t FROM Teachers t WHERE t.date = :date")})
public class Teachers implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "SYS_FLDORDER")
    private Integer sysFldorder;
    @Id
    @Basic(optional = false)
    @Column(name = "SYS_GUID")
    private String sysGuid;
    @Column(name = "SYS_STATE")
    private Integer sysState;
    @Column(name = "SYS_REV")
    private BigInteger sysRev;
    @Column(name = "SYS_CREATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysCreated;
    @Column(name = "SYS_UPDATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysUpdated;
    @Column(name = "SYS_CREATOR")
    private String sysCreator;
    @Column(name = "SYS_USER")
    private String sysUser;
    @Column(name = "SYS_GUIDFK")
    private String sysGuidfk;
    @Column(name = "SYS_PARENTGUID")
    private String sysParentguid;
    @Column(name = "FIO")
    private String fio;
    @Column(name = "ID_NUMBER")
    private String idNumber;
    @Column(name = "EDUINSTITUTIONFK")
    private String eduinstitutionfk;
    @Column(name = "FACULTYFK")
    private String facultyfk;
    @Column(name = "DEPARTMENTFK")
    private String departmentfk;
    @Column(name = "ORGANIZATIONFK")
    private String organizationfk;
    @Column(name = "POSITIONFK")
    private String positionfk;
    @Column(name = "PODRAZDELENIE")
    private String podrazdelenie;
    @Column(name = "PHONE")
    private String phone;
    @Column(name = "EXPERIENCE")
    @Temporal(TemporalType.DATE)
    private Date experience;
    @Column(name = "ACADEMIC_DEGREEFK")
    private String academicDegreefk;
    @Column(name = "ACADEMIC_RANKFK")
    private String academicRankfk;
    @Column(name = "GRADUATE")
    private Integer graduate;
    @Column(name = "PHD")
    private Integer phd;
    @Column(name = "APPLICANT_PHD")
    private Integer applicantPhd;
    @Column(name = "APPLICANT_DOCTOR")
    private Integer applicantDoctor;
    @Column(name = "DIPLOM")
    private String diplom;
    @Column(name = "TUITION_FK")
    private String tuitionFk;
    @Column(name = "STUDY_YEAR")
    private Integer studyYear;
    @Column(name = "ESTABLISHMENT")
    private String establishment;
    @Column(name = "WORK_LOADING")
    private String workLoading;
    @Column(name = "DATE_PROTECTION")
    @Temporal(TemporalType.DATE)
    private Date dateProtection;
    @Column(name = "ATTESTAT")
    private String attestat;
    @Column(name = "PSA_MEMBER")
    private Integer psaMember;
    @Column(name = "PSA")
    private String psa;
    @Column(name = "BOARD_MEMBER")
    private Integer boardMember;
    @Column(name = "COUNCIL")
    private String council;
    @Column(name = "SNILS")
    private String snils;
    @Column(name = "DATE")
    @Temporal(TemporalType.DATE)
    private Date date;

    public Teachers() {
    }

    public Teachers(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysFldorder() {
        return sysFldorder;
    }

    public void setSysFldorder(Integer sysFldorder) {
        this.sysFldorder = sysFldorder;
    }

    public String getSysGuid() {
        return sysGuid;
    }

    public void setSysGuid(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysState() {
        return sysState;
    }

    public void setSysState(Integer sysState) {
        this.sysState = sysState;
    }

    public BigInteger getSysRev() {
        return sysRev;
    }

    public void setSysRev(BigInteger sysRev) {
        this.sysRev = sysRev;
    }

    public Date getSysCreated() {
        return sysCreated;
    }

    public void setSysCreated(Date sysCreated) {
        this.sysCreated = sysCreated;
    }

    public Date getSysUpdated() {
        return sysUpdated;
    }

    public void setSysUpdated(Date sysUpdated) {
        this.sysUpdated = sysUpdated;
    }

    public String getSysCreator() {
        return sysCreator;
    }

    public void setSysCreator(String sysCreator) {
        this.sysCreator = sysCreator;
    }

    public String getSysUser() {
        return sysUser;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public String getSysGuidfk() {
        return sysGuidfk;
    }

    public void setSysGuidfk(String sysGuidfk) {
        this.sysGuidfk = sysGuidfk;
    }

    public String getSysParentguid() {
        return sysParentguid;
    }

    public void setSysParentguid(String sysParentguid) {
        this.sysParentguid = sysParentguid;
    }

    public String getFio() {
        return fio;
    }

    public void setFio(String fio) {
        this.fio = fio;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getEduinstitutionfk() {
        return eduinstitutionfk;
    }

    public void setEduinstitutionfk(String eduinstitutionfk) {
        this.eduinstitutionfk = eduinstitutionfk;
    }

    public String getFacultyfk() {
        return facultyfk;
    }

    public void setFacultyfk(String facultyfk) {
        this.facultyfk = facultyfk;
    }

    public String getDepartmentfk() {
        return departmentfk;
    }

    public void setDepartmentfk(String departmentfk) {
        this.departmentfk = departmentfk;
    }

    public String getOrganizationfk() {
        return organizationfk;
    }

    public void setOrganizationfk(String organizationfk) {
        this.organizationfk = organizationfk;
    }

    public String getPositionfk() {
        return positionfk;
    }

    public void setPositionfk(String positionfk) {
        this.positionfk = positionfk;
    }

    public String getPodrazdelenie() {
        return podrazdelenie;
    }

    public void setPodrazdelenie(String podrazdelenie) {
        this.podrazdelenie = podrazdelenie;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getExperience() {
        return experience;
    }

    public void setExperience(Date experience) {
        this.experience = experience;
    }

    public String getAcademicDegreefk() {
        return academicDegreefk;
    }

    public void setAcademicDegreefk(String academicDegreefk) {
        this.academicDegreefk = academicDegreefk;
    }

    public String getAcademicRankfk() {
        return academicRankfk;
    }

    public void setAcademicRankfk(String academicRankfk) {
        this.academicRankfk = academicRankfk;
    }

    public Integer getGraduate() {
        return graduate;
    }

    public void setGraduate(Integer graduate) {
        this.graduate = graduate;
    }

    public Integer getPhd() {
        return phd;
    }

    public void setPhd(Integer phd) {
        this.phd = phd;
    }

    public Integer getApplicantPhd() {
        return applicantPhd;
    }

    public void setApplicantPhd(Integer applicantPhd) {
        this.applicantPhd = applicantPhd;
    }

    public Integer getApplicantDoctor() {
        return applicantDoctor;
    }

    public void setApplicantDoctor(Integer applicantDoctor) {
        this.applicantDoctor = applicantDoctor;
    }

    public String getDiplom() {
        return diplom;
    }

    public void setDiplom(String diplom) {
        this.diplom = diplom;
    }

    public String getTuitionFk() {
        return tuitionFk;
    }

    public void setTuitionFk(String tuitionFk) {
        this.tuitionFk = tuitionFk;
    }

    public Integer getStudyYear() {
        return studyYear;
    }

    public void setStudyYear(Integer studyYear) {
        this.studyYear = studyYear;
    }

    public String getEstablishment() {
        return establishment;
    }

    public void setEstablishment(String establishment) {
        this.establishment = establishment;
    }

    public String getWorkLoading() {
        return workLoading;
    }

    public void setWorkLoading(String workLoading) {
        this.workLoading = workLoading;
    }

    public Date getDateProtection() {
        return dateProtection;
    }

    public void setDateProtection(Date dateProtection) {
        this.dateProtection = dateProtection;
    }

    public String getAttestat() {
        return attestat;
    }

    public void setAttestat(String attestat) {
        this.attestat = attestat;
    }

    public Integer getPsaMember() {
        return psaMember;
    }

    public void setPsaMember(Integer psaMember) {
        this.psaMember = psaMember;
    }

    public String getPsa() {
        return psa;
    }

    public void setPsa(String psa) {
        this.psa = psa;
    }

    public Integer getBoardMember() {
        return boardMember;
    }

    public void setBoardMember(Integer boardMember) {
        this.boardMember = boardMember;
    }

    public String getCouncil() {
        return council;
    }

    public void setCouncil(String council) {
        this.council = council;
    }

    public String getSnils() {
        return snils;
    }

    public void setSnils(String snils) {
        this.snils = snils;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sysGuid != null ? sysGuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Teachers)) {
            return false;
        }
        Teachers other = (Teachers) object;
        if ((this.sysGuid == null && other.sysGuid != null) || (this.sysGuid != null && !this.sysGuid.equals(other.sysGuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.entity.Teachers[ sysGuid=" + sysGuid + " ]";
    }
    
}
